package cn.juque.workflow.api.dto.leaveinfo;

import cn.juque.common.abstracts.AbstractRequestDTO;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Size;

/**
 * @author JUQUE
 * @version 1.0.0
 * <ul>
 *  <li>simple-generator</li>
 *  <li>请假申请单信息</li>
 * </ul>
 * @date 2023-01-31 16:31:27
 **/
@Data
public class LeaveInfoSearchDTO extends AbstractRequestDTO {

    /**
     * 标题
     */
    @Size(message = "标题不能超过{max}个字符", max = 100)
    private String title;

    /**
     * 请假原因
     */
    @Size(message = "请假原因不能超过{max}个字符", max = 100)
    private String reason;

    /**
     * 审批状态：1-待提交；2-审批中；3-已完成；4-已驳回
     */
    @Range(min = 0, max = 9999, message = "审批状态必须在{min}-{max}之间")
    private Integer approveStatus;

}
